#pragma once
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <math.h>
#include <string> 
#define OK 1
#define ERROR 0
#define Maxsize 100
typedef int Status;

typedef struct {
	int* base;
	int* top;
	int stacksize;
}Sq_Stack;

typedef struct {
	char* base;
	char* top;
	int stacksize;
}Sq_Stack_char;

Status Init_Sq_Stack(Sq_Stack& S);

Status Push_Sq_Stack(Sq_Stack& S, int e);

Status Pop_Sq_Stack(Sq_Stack& S, int &e);

//Status StackEmpty_Sq_Stack(Sq_Stack S);

int GetTop_Sq_Stack(Sq_Stack& S);

void Destroy_Sq_Stack(Sq_Stack& S);

Status Init_char_Sq_Stack(Sq_Stack_char& S);

Status Push_char_Sq_Stack(Sq_Stack_char& S, char e);

Status Pop_char_Sq_Stack(Sq_Stack_char& S, char& e);

char GetTop_char_Sq_Stack(Sq_Stack_char& S);

void Destroy_char_Sq_Stack(Sq_Stack_char& S);